﻿using Cemit.PolyProto;
using Google.Protobuf;
using Google.Protobuf.WellKnownTypes;
using Microsoft.Extensions.DependencyInjection;
using System;

namespace Cemit.PolyServer.Lobby
{
    [System.Obsolete("使用PolyServerApplication启动服务器")]
    class Program
    {
        public static ServiceProvider Provider { get; private set; }

        static void Main(string[] args)
        {
            IServiceCollection services = new ServiceCollection();
            
            services.AddSingleton<ILobbyServer>(
                new LobbyServer("127.0.0.1", 4001)
                    .StartWithConfig());

            Provider = services.BuildServiceProvider();
        }
    }
}
